package com.arvinclub.service.dao;

import com.arvinclub.model.entity.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 博客DAO层
 */
public interface BlogDao
{
    Blog backBlogsById(int id);

    List<Blog> selectBlogsByUserId(int userId);

    List<Blog> selectBlogsByKey(String key);

    boolean addBlog(@Param("content") String content, @Param("id") int id, @Param("time") String time, @Param("filenames") String filenames);

    void delBlog(int blogId);

    List<Blog> attentionBlogs(int userId);

    void editBlog(Blog blog);
}
